<?php
	class Laboratorio{
		public $cod_laboratorio;
		public $nome;
		
		public function __call($name, $args){
			if (preg_match('/^get(.*)$/', $name, $m)) {
				$prop = strtolower($m[1]);
				if (property_exists($this, $prop)) {
					return $this->$prop;
				}
			}
		}
		
		public function setCodLaboratorio($cod_laboratorio){
			$this->cod_laboratorio = $cod_laboratorio;
		}
		
		public function setNome($nome){
			$this->nome = $nome;
		}
		
	}